package com.flex.reflection.listener;

/**
 * @author ganlt
 * @since 2019/09/23 11:51
 */
public interface PropertyListener {
    /**
     * 读取属性事件监听
     * @param propertyName
     * @param fieldValue
     */
    void readProperty(String propertyName, Object fieldValue);

    /**
     * 写属性事件监听
     * @param propertyName
     * @param oldValue
     * @param newValue
     */
    Object writeProperty(String propertyName, Object oldValue, Object newValue);
}
